package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.Instruct;
import campus.aiit.ssl.manage.custom.dao.BaseDao;

import java.util.List;

/**
 * @author ihaokun
 * @date 2019/12/4 10:50
 */
public interface InstructDao extends BaseDao<Instruct> {

  @Override
  int deleteByPrimaryKey(Long id);

  @Override
  int insertSelective(Instruct record);

  Instruct[] selectByForeignKey(long id);

  Instruct[] selectByDeviceId(long deviceId);

  int deleteByForeignKey(long templateId);

  String selectValueByPrimaryKey(long id);

  List<String> firstInstructNames();

  Instruct selectItem(long templateId, String name);
  String selectValue(long templateId, String name);

  Instruct selectInstructById(Long instructId);

  Instruct[] selectByTypeId(Long typeId);

  int savetime(Instruct instruct);

}